package net.csdn.business.common.domain.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author wanghang
 * @Date 2022/6/16 20:30
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserFansSearchDto implements Serializable {

    /**
     * 当前用户ID
     */
    private String crrUserId;

    /**
     * 用户命名空间
     */
    private String path;
    /**
     * 用户id
     */
    private String userId;

    /**
     * 1-粉丝列表 2-关注列表
     */
    @NotNull(message = "flag 不能为空")
    @Min(value = 1)
    @Max(value = 2)
    private Integer flag;

    @NotNull(message = "页码不能为空")
    @Min(value = 1)
    private Integer pageNum;

    @NotNull(message = "单页条数不能为空")
    @Min(value = 1)
    @Max(value = 100)
    private Integer pageSize;

}
